package com.xiaozhen.tcp.service;

import com.xiaozhen.common.core.domain.driver.ParseTcpAttribute;
import com.xiaozhen.common.core.domain.driver.ParseGroup;
import com.xiaozhen.common.core.domain.driver.ParseTcpDriver;

import java.util.List;
import java.util.Map;

/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/9/28 16:00
 * @description:
 */
public interface DriverService {

    /**
     * 根据配置文件查出驱动信息
     *
     * @return
     */
    ParseTcpDriver selectTcpDriver();

    /**
     * 根据驱动查询出所有解析组合
     * @param driverId
     * @return
     */
    Map<Integer, ParseGroup> selectGroupByDriverId(Long driverId);

    /**
     * 查询出所有解析属性
     * @return
     */
    List<ParseTcpAttribute> selectAttributeList(Long driverId);
}
